package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * @Author lin
 * @Date 2021/10/20 8:20
 */
@Data
@ApiModel("学生认证")
public class StudentAuthenticationDTO {

    @ApiModelProperty("真实姓名")
    @NotBlank(message = "姓名不能为空")
    private String realName;

    @ApiModelProperty("学号")
    @NotNull(message = "学号不能为空")
    @Min(value = 11111111111L,message = "请输入正确学号")
    @Max(value = 99999999999L,message = "请输入正确学号")
    private Long studentNo;

    @ApiModelProperty("专业")
    @NotNull(message = "请选择专业")
    private Short major;

    @ApiModelProperty("图片路径")
    private MultipartFile file;

}
